import random

num = random.randint(1,10)
myNum = int(input("请输入一个数："))

while True:
    if myNum>num:
        print("高了")
        myNum = int(input("请输入一个数："))
    elif myNum<num:
        print("低了")
        myNum = int(input("请输入一个数："))
    else:
        print("正确")
        break